(function () {
  let myChart = echarts.init(document.querySelector(".box-l3"));
  option = {
    title: {
      show: true,
      text: "标题样式",
      textStyle: {
        color: "white",
        fontSize: 18,
      },
    },
    legend: {
      right: "white",
      textStyle: {
        color: "white",
      },
    },
    toolbox: {
      show: true,
      feature: {
        mark: { show: true },
        // dataView: { show: true, readOnly: false },
        // restore: { show: true },
        // saveAsImage: { show: true },
      },
    },
    series: [
      {
        name: "Nightingale Chart",
        type: "pie",
        radius: [30, 80],
        center: ["50%", "50%"],
        roseType: "area",
        itemStyle: {
          borderRadius: 8,
        },
        data: [
          { value: 38, name: "图例 1" },
          { value: 32, name: "图例 2" },
          { value: 28, name: "图例 3" },
          { value: 26, name: "图例 4" },
          { value: 18, name: "图例 5" },
        ],
      },
    ],
  };
  myChart.setOption(option);
})();
